﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmModificarProvedor.aspx.cs" Inherits="Farmacia.net.Compras.Proveedor.frmModificarProvedor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2>Modificar Proveedor</h2>
    <br />
    <asp:Label ID="Label1" runat="server" Text="Ingrese Ruc: "></asp:Label>
    &nbsp;
    <asp:TextBox ID="txtRuc" runat="server"></asp:TextBox>
    &nbsp;
    <asp:Button ID="btnBuscar" runat="server" Text="Buscar" />
    <asp:Panel ID="Panel1" runat="server">
    

    </asp:Panel>
    <asp:FormView ID="FormView1" runat="server" CellPadding="4" 
        DataSourceID="ObjectDataSource1" DefaultMode="Edit" ForeColor="#333333">
        <EditItemTemplate>
            <table class="style1">
                <tr>
                    <td>
                        IdProveedor:</td>
                    <td>
                        <asp:TextBox ID="IdProveedorTextBox" runat="server" 
                            Text='<%# Bind("IdProveedor") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        Ruc:</td>
                    <td>
                        <asp:TextBox ID="RucTextBox" runat="server" Text='<%# Bind("Ruc") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        RazonSocial:</td>
                    <td>
                        <asp:TextBox ID="RazonSocialTextBox" runat="server" 
                            Text='<%# Bind("RazonSocial") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        Direccion:</td>
                    <td>
                        <asp:TextBox ID="DireccionTextBox" runat="server" 
                            Text='<%# Bind("Direccion") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        Telefono:</td>
                    <td>
                        <asp:TextBox ID="TelefonoTextBox" runat="server" 
                            Text='<%# Bind("Telefono") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        PersonaContacto:</td>
                    <td>
                        <asp:TextBox ID="PersonaContactoTextBox" runat="server" 
                            Text='<%# Bind("PersonaContacto") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        Ciudad:</td>
                    <td>
                        <asp:TextBox ID="CiudadTextBox" runat="server" Text='<%# Bind("Ciudad") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        Email:</td>
                    <td>
                        <asp:TextBox ID="EmailTextBox" runat="server" Text='<%# Bind("Email") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        Movil:</td>
                    <td>
                        <asp:TextBox ID="MovilTextBox" runat="server" Text='<%# Bind("Movil") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" 
                            CommandName="Update" Text="Actualizar" />
                        &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" 
                            CausesValidation="False" CommandName="Cancel" Text="Cancelar" />
                    </td>
                </tr>
            </table>
            &nbsp;&nbsp;<br />&nbsp;<br />
        </EditItemTemplate>
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <InsertItemTemplate>
            IdProveedor:
            <asp:TextBox ID="IdProveedorTextBox" runat="server" 
                Text='<%# Bind("IdProveedor") %>' />
            <br />
            Ruc:
            <asp:TextBox ID="RucTextBox" runat="server" Text='<%# Bind("Ruc") %>' />
            <br />
            RazonSocial:
            <asp:TextBox ID="RazonSocialTextBox" runat="server" 
                Text='<%# Bind("RazonSocial") %>' />
            <br />
            Direccion:
            <asp:TextBox ID="DireccionTextBox" runat="server" 
                Text='<%# Bind("Direccion") %>' />
            <br />
            Telefono:
            <asp:TextBox ID="TelefonoTextBox" runat="server" 
                Text='<%# Bind("Telefono") %>' />
            <br />
            PersonaContacto:
            <asp:TextBox ID="PersonaContactoTextBox" runat="server" 
                Text='<%# Bind("PersonaContacto") %>' />
            <br />
            Ciudad:
            <asp:TextBox ID="CiudadTextBox" runat="server" Text='<%# Bind("Ciudad") %>' />
            <br />
            Email:
            <asp:TextBox ID="EmailTextBox" runat="server" Text='<%# Bind("Email") %>' />
            <br />
            Movil:
            <asp:TextBox ID="MovilTextBox" runat="server" Text='<%# Bind("Movil") %>' />
            <br />
            Devoluciones:
            <asp:TextBox ID="DevolucionesTextBox" runat="server" 
                Text='<%# Bind("Devoluciones") %>' />
            <br />
            Productos:
            <asp:TextBox ID="ProductosTextBox" runat="server" 
                Text='<%# Bind("Productos") %>' />
            <br />
            OrdendeCompra:
            <asp:TextBox ID="OrdendeCompraTextBox" runat="server" 
                Text='<%# Bind("OrdendeCompra") %>' />
            <br />
            <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" 
                CommandName="Insert" Text="Insertar" />
            &nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server" 
                CausesValidation="False" CommandName="Cancel" Text="Cancelar" />
        </InsertItemTemplate>
        <ItemTemplate>
            IdProveedor:
            <asp:Label ID="IdProveedorLabel" runat="server" 
                Text='<%# Bind("IdProveedor") %>' />
            <br />
            Ruc:
            <asp:Label ID="RucLabel" runat="server" Text='<%# Bind("Ruc") %>' />
            <br />
            RazonSocial:
            <asp:Label ID="RazonSocialLabel" runat="server" 
                Text='<%# Bind("RazonSocial") %>' />
            <br />
            Direccion:
            <asp:Label ID="DireccionLabel" runat="server" Text='<%# Bind("Direccion") %>' />
            <br />
            Telefono:
            <asp:Label ID="TelefonoLabel" runat="server" Text='<%# Bind("Telefono") %>' />
            <br />
            PersonaContacto:
            <asp:Label ID="PersonaContactoLabel" runat="server" 
                Text='<%# Bind("PersonaContacto") %>' />
            <br />
            Ciudad:
            <asp:Label ID="CiudadLabel" runat="server" Text='<%# Bind("Ciudad") %>' />
            <br />
            Email:
            <asp:Label ID="EmailLabel" runat="server" Text='<%# Bind("Email") %>' />
            <br />
            Movil:
            <asp:Label ID="MovilLabel" runat="server" Text='<%# Bind("Movil") %>' />
            <br />
            Devoluciones:
            <asp:Label ID="DevolucionesLabel" runat="server" 
                Text='<%# Bind("Devoluciones") %>' />
            <br />
            Productos:
            <asp:Label ID="ProductosLabel" runat="server" Text='<%# Bind("Productos") %>' />
            <br />
            OrdendeCompra:
            <asp:Label ID="OrdendeCompraLabel" runat="server" 
                Text='<%# Bind("OrdendeCompra") %>' />
            <br />
            <asp:LinkButton ID="NewButton" runat="server" CausesValidation="False" 
                CommandName="New" Text="Nuevo" />
        </ItemTemplate>
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
    </asp:FormView>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        DataObjectTypeName="Farmacia.Entities.Proveedor" SelectMethod="GetFromProveedorByRuc" 
        TypeName="Farmacia.BussinessLogic.ProveedorBL" 
        UpdateMethod="RegistrarProveedor" 
        onobjectcreating="ObjectDataSource1_ObjectCreating">
        <SelectParameters>
            <asp:ControlParameter ControlID="txtRuc" Name="ruc" PropertyName="Text" 
                Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>


</asp:Content>
